package com.tm.d16_polymorphism;

/**
 * 2024/5/19 多态老师继承人们 Cjj 15:21
 */
public class Teacher extends People {

    public String name="子类Teacher的名称";
    @Override
    public void run(){
        System.out.println("老师跑到快！");
    }

    public void teach() {
        System.out.println("老师");
    }
}
